#!/bin/bash
source /etc/profile

log_dir=/data/log/datacomputing

if [[ ! -d $log_dir ]];
then
	mkdir -p $log_dir
fi

day=`date -d "-1 day" +%Y-%m-%d`


if [[ -z $1 ]]; then
	bfFilePath=/data/rsync/history_new_user/bloomfilter/$day
else
	bfFilePath=$1
fi
bloomfilterGroup=history
java -cp /data/src/data-computing/misc/target/data-computing-misc-1.0-SNAPSHOT.jar com.duowan.realtime.tool.LoadDataToBloomfilterPoolTool $bloomfilterGroup $bfFilePath >> $log_dir/load_history.log 2>&1